import {
	baseUrl
} from './config.js'
const http = uni.$u.http

export const $get = function(url, data = {}) {
	return http.get(`${baseUrl}/${url}`, data)
}
export const $post = function(url, data = {}) {
	return http.post(`${baseUrl}/${url}`, data)
}
export const $put = function(url, data = {}) {
	return http.put(`${baseUrl}/${url}`, data)
}
export const $delete = function(url, data = {}) {
	return http.delete(`${baseUrl}/${url}`, data)
}